#pragma once

#include "View.h"

namespace intro
{
	class IntroView : public mcore::View
	{
	public:
		IntroView()
		{
			mName = "Intro View";
			mTotalTime = 0.0f;
		}

		void init();
		virtual void unload();
		virtual void onResize() {}
		virtual void update(float dt) { mTotalTime += dt; }
		virtual void draw();

		// returns whether it handled a message; it's not being used currently anyway!
		virtual bool onWindowMessage(UINT msg, WPARAM wParam, LPARAM lParam) { return false; }

	private:
		ID3D11Buffer * mVertexBuffer;
		ID3D11Buffer * mIndexBuffer;

		float mTotalTime;
	};
}